// src/init.js

import initState from "./initState.js"
import initComputed from "./initComputed.js"
import initWatch from "./initWatch"
import Watcher from "./Watcher.js"

export default function Vue(options) {
  // 初始化函数
  this._init(options)
}

Vue.prototype._init = function (options) {
  const vm = this
  vm.$options = options
  if (options.data) {
    // 初始化数据
    initState(vm)
  }
}
